<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="keywords" content="" />
		<meta http-equiv="description" content="" />
		<title>工房受注管理</title>

		<link rel="stylesheet" href="./assets/styles/default.css" type="text/css" />
		<script src="assets/scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
		<script src="assets/scripts/menu.js" type="text/javascript"></script>
		
		<script src="assets/scripts/table.js" type="text/javascript"></script>

		<script src="assets/scripts/ui/jquery-ui-1.7.2.custom.js" type="text/javascript"></script>
		<link type="text/css" href="./assets/styles/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
		<script type="text/javascript" src="./assets/scripts/ui/ui.core.js"></script>
		
		<script type="text/javascript">
		$(function() {

			// メッセージのフェード
			$('.message').fadeIn("slow");

			// 戻るボタン押下
			$('#btn_back').click(function(){
				document.fm.mode.value = 'back';
				document.fm.submit();
			});
		});
		</script>
		
		<script>
	    $(document).ready(function() {
	        
	         
	         $("#print_use2").click(function(){
	            if(this.checked){
	                $("#print_use3").removeAttr("disabled");  
	                $("#print_use4").removeAttr("disabled");  
	            }else{
	                $("#print_use3").attr("disabled","disabled");
	                $("#print_use4").attr("disabled","disabled");
	            }
	        }); 
	         
	         $("#print_use1").click(function(){
		            if(this.checked){
		            	$("#print_use3").attr("disabled","disabled");
		                $("#print_use4").attr("disabled","disabled");
		            
		                $("#print_use3").val("");
		                $("#print_use4").val("");
		            }
		     }); 
	         
	         if(document.getElementById("print_use2").checked){
	        	 $("#print_use3").removeAttr("disabled");  
	             $("#print_use4").removeAttr("disabled");  
	         }
	    }); 

    	</script>
    
		<script>
		$(document).ready(function(){ 
			$("#delivery_date").wrDate();  
			$("#delivery_date1").wrDate();  
			$("#hope_date").wrDate();  
			$("#copybtn").click(function(){
				$("#delivery_zip").val($("#zip").val());
				$("#delivery_address").val($("#address").val());
				$("#delivery_phone").val($("#phone").val());
			});
			 
		});

		$.extend({ 
			wrDate : function(objs) { 
			objs.each(function(i) { 
				//jQueryオブジェクトをトラバース
				var inputObj = $(this); 
				inputObj.datepicker({
					changeMonth: true,
					changeYear: true,
					dateFormat: 'yy/mm/dd'
				}); //各jQueryオブジェクトにCalendarコントロール
			}); 
		}});

		$.fn.extend({ 
			wrDate : function() { 
			//wrDate jQueryプラグインの名前を定義します
			$.wrDate(this); //呼び出す前に、カスタムjQuery関数 
		}});
		
		</script>
		
	</head>
	<body >
	{{ php }} include( MENU_FILE ); {{ /php }}
		<div id="header" class="clearfix"><div class="wrapper">
			<h1><a href="./">コントロールパネル</a></h1>
			<form id="form_logout" action="logout.php" method="post"><p>{{ $login.staff_name }} <input type="submit" id="button_logout" value="ログアウト" /></p></form>
		</div></div>

		<div id="container"><div class="wrapper">

			<h2>工房受注管理</h2>
			<ul class="submenu clearfix">
				<li><a href="order_search.php">受注検索</a></li>								
				<li>{{if $cnt>0}}<a href='order.php'>受注登録</a>{{else}}受注登録{{/if}}</li>
				<li><a href="order_shop.php">商品マスタ</a></li>
			</ul>

{{if $cnt==''}}
<div id="load" style="display: block;">
			<h3>受注登録</h3>
			{{ if $phase == 'complete' }}
			<p class="message">登録が完了しました</p>
			<ul>
				<li>&gt;&gt; <a href="order_search.php">一覧へ</a></li>
			</ul>
			{{ else }}
			<p class="message">必要な情報を入力して、「登録」ボタンをクリックしてください。 </p>
			<form name="fm1" action="order.php" method="post" >
				<input type="hidden" name="mod" value="input" />
				<table class="formTable">
					<thead>
					<tr>
						<th>※種別</th>
						<td>
						<input type="radio" name="category" value="1" {{ if $forms.category == 1 }}checked="checked"{{ /if }} id="c1" /> <label for="c1">プリント工房PRO</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="category" value="2" {{ if $forms.category == 2 }}checked="checked"{{ /if }} id="c2" /> <label for="c2">プリント工房LITE</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="category" value="3" {{ if $forms.category == 3 }}checked="checked"{{ /if }} id="c3" /> <label for="c3">名刺工房</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="category" value="4" {{ if $forms.category == 4 }}checked="checked"{{ /if }} id="c4" /> <label for="c4">アルバム工房</label>
						&nbsp;<span style="color: red">{{ $err.category }}</span>
						</td>
					</tr>
					<tr>
						<th>※企業形態</th>
						<td>
						<input type="radio" name="comtype" value="1" {{ if $forms.comtype == 1 }}checked="checked"{{ /if }} id="com1" /> <label for="com1">法人</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="comtype" value="2" {{ if $forms.comtype == 2 }}checked="checked"{{ /if }} id="com2" /> <label for="com2">個人</label>
						&nbsp;<span style="color: red">{{ $err.comtype }}</span>
						</td>
					</tr>
					
					<tr>
						<th>※氏名</th>
						<td><input type="text" name="name" class="text" value="{{ $forms.name }}" />&nbsp;<span style="color: red">{{ $err.name }}</span></td>
					</tr>
					<tr>
						<th>フリガナ</th>
						<td><input type="text" name="kana" class="text" value="{{ $forms.kana }}" />&nbsp;<span style="color: red">{{ $err.kana }}</span></td>
					</tr>
					<tr>
						<th>メールアドレス</th>
						<td><input type="text" name="email" class="text" value="{{ $forms.email }}" />&nbsp;<span style="color: red">{{ $err.email }}</span></td>
					</tr>
					<tr>
						<th>※電話番号</th>
						<td><input type="text" id="phone" name="phone" class="text" value="{{ $forms.phone }}" />&nbsp;<span style="color: red">{{ $err.phone }}</span></td>
					</tr>
					<tr>
						<th>FAX番号</th>
						<td><input type="text" name="fax" class="text" value="{{ $forms.fax }}" />&nbsp;<span style="color: red">{{ $err.fax }}</span></td>
					</tr>
					<tr>
						<th>郵便番号</th>
						<td><input type="text" id="zip" name="zip" class="text" value="{{ $forms.zip }}" />&nbsp;<span style="color: red">{{ $err.zip }}</span></td>
					</tr>
					<tr>
						<th>住所</th>
						<td><input type="text" id="address" name="address" class="text" value="{{ $forms.address }}" /></td>
					</tr>
					<tr>
						<th>使用目的</th>
						<td>
						<input type="checkbox" name="pofuse1" value="1" {{ if $forms.pofuse1 == 1 }}checked="checked"{{ /if }} id="p1" /> <label for="p1">作品展</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="pofuse2" value="2" {{ if $forms.pofuse2 == 2 }}checked="checked"{{ /if }} id="p2" /> <label for="p2">コンテスト募集</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="pofuse3" value="3" {{ if $forms.pofuse3 == 3 }}checked="checked"{{ /if }} id="p3" /> <label for="p3">個人所有や贈与品</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="pofuse4" value="4" {{ if $forms.pofuse4 == 4 }}checked="checked"{{ /if }} id="p4" /> <label for="p4">その他</label>&nbsp;<input type="text" id="pofuse_info" class="text" name="pofuse_info" value="{{$forms.pofuse_info}}" style="width: 80px"  />
						</td>
					</tr>
					
					<tr>
						<th>納品日</th>
						<td><input type="text" id="delivery_date" class="text" name="delivery_date" style="width: 80px" value="{{ $forms.delivery_date }}" />&nbsp;<span style="color: red">{{ $err.delivery_date }}</span></td>
					</tr>
					
					<tr>
						<th>納品先郵便番号</th>
						<td><input type="button" value="上記の住所、TELをコピー" class="text" id="copybtn"></input><input type="text" id="delivery_zip" class="text" name="delivery_zip" style="width: 80px" value="{{ $forms.delivery_zip }}" />&nbsp;<span style="color: red">{{ $err.delivery_zip }}</span></td>
					</tr>
					<tr>
						<th>納品先住所</th>
						<td><input type="text" id="delivery_address" class="text" name="delivery_address" value="{{ $forms.delivery_address }}" /></td>
					</tr>
					
					<tr>
						<th>納品先電話番号</th>
						<td><input type="text" id="delivery_phone" class="text" name="delivery_phone" value="{{ $forms.delivery_phone }}"  />&nbsp;<span style="color: red">{{ $err.delivery_phone }}</span></td>
					</tr>
					<tr>
						<th>連絡手段</th>
						<td>
						<input type="radio" name="delivery_contact" value="1" {{ if $forms.delivery_contact == 1 }}checked="checked"{{ /if }} id="dc1" /> <label for="dc1">電話</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="delivery_contact" value="2" {{ if $forms.delivery_contact == 2 }}checked="checked"{{ /if }} id="dc2" /> <label for="dc2">FAX</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="delivery_contact" value="3" {{ if $forms.delivery_contact == 3 }}checked="checked"{{ /if }} id="dc3" /> <label for="dc3">Eメール</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="delivery_contact" value="4" {{ if $forms.delivery_contact == 4 }}checked="checked"{{ /if }} id="dc4" /> <label for="dc4">その他 </label>&nbsp;<input type="text" id="delivery_contact_info" class="text" name="delivery_contact_info" value="{{$forms.delivery_contact_info}}" style="width: 80px"  />
						</td>
					</tr>
					
					<tr>
						<th>ご希望納期</th>
						<td><input type="text" id="hope_date" class="text" name="hope_date" style="width: 80px" value="{{ $forms.hope_date }}" />&nbsp;<span style="color: red">{{ $err.hope_date }}</span></td>
					</tr>
					
					<tr>
						<th>プリント工房の利用</th>
						<td>
						<input type="radio" id="print_use1"  name="print_use" value="1" {{ if $forms.print_use == 1 }}checked="checked"{{ /if }}   /> <label for="print_use1">初めて</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" id="print_use2" name="print_use" value="2" {{ if $forms.print_use == 2 }}checked="checked"{{ /if }}  /> <label for="print_use2">利用したことがある</label>&nbsp;&nbsp;&nbsp;
						<input type="text" disabled="disabled" style="width: 80px" class="text" id="print_use3" name="print_use3" value="{{$forms.print_use3}}"  /> 年&nbsp;&nbsp;&nbsp;
						<input type="text" disabled="disabled" style="width: 80px" class="text" id="print_use4" name="print_use4" value="{{$forms.print_use4}}"  /> 月頃
						&nbsp;<span style="color: red">{{ $err.print_use3 }}</span>
						</td>
					</tr>
					
					<tr>
						<th>どこで知りましたか</th>
						<td>
						<input type="checkbox" name="wherefrom1" value="1" {{ if $forms.wherefrom1 == 1 }}checked="checked"{{ /if }} id="wherefrom1" /> <label for="wherefrom1">HP</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="wherefrom2" value="2" {{ if $forms.wherefrom2 == 2 }}checked="checked"{{ /if }} id="wherefrom2" /> <label for="wherefrom2">雑誌</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="wherefrom3" value="3" {{ if $forms.wherefrom3 == 3 }}checked="checked"{{ /if }} id="wherefrom3" /> <label for="wherefrom3">友人紹介</label>&nbsp;&nbsp;<input type="text" id="wherefrom_info" value="{{$forms.wherefrom_info_1}}" class="text" name="wherefrom_info_1" style="width: 80px"  />
						<input type="checkbox" name="wherefrom4" value="4" {{ if $forms.wherefrom4 == 4 }}checked="checked"{{ /if }} id="wherefrom4" /> <label for="wherefrom4">その他</label> &nbsp;<input type="text" id="wherefrom_info" value="{{$forms.wherefrom_info_2}}"  class="text" name="wherefrom_info_2" style="width: 80px"  />
						</td>
					</tr>
					<tr>
						<th>※支払方法</th>
						<td>
						<input type="radio" name="pay_type" value="1" {{ if $forms.pay_type == 1 }}checked="checked"{{ /if }} id="pay_type1" /> <label for="pay_type1">事前振込み</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="pay_type" value="2" {{ if $forms.pay_type == 2 }}checked="checked"{{ /if }} id="pay_type2" /> <label for="pay_type2">代金引換</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="pay_type" value="3" {{ if $forms.pay_type == 3 }}checked="checked"{{ /if }} id="pay_type3" /> <label for="pay_type3">請求書払い</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="pay_type" value="4" {{ if $forms.pay_type == 4 }}checked="checked"{{ /if }} id="pay_type4" /> <label for="pay_type4">現金払い</label>
						&nbsp;<span style="color: red">{{ $err.pay_type }}</span>
						</td>
					</tr>
					
					<tr>
						<th>特記事項</th>
						<td>
						<textarea rows="3" cols="50" id="special"  name="special">{{$forms.special}}</textarea>
						</td>
					</tr>
					<tr>
						<th>コメント<br/>※納品書に反映</th>
						<td>
						<textarea rows="3" cols="50" id="remark"  name="remark">{{$forms.remark}}</textarea>
						&nbsp;<span style="color: red">{{ $err.remark }}</span>
						</td>
					</tr>
					
				</thead>
				</table>

				<p class="button">
					<button type="submit" class="submit"><span>登録</span></button>
				</p>
				<input type="hidden" name="mode" value="input" />
			</form>
			{{ /if }}
</div>			
{{/if}}

{{if $cnt>0}}
<div id="update">
			<h3>{{if $mod=='copy'}}受注登録{{else}}受注更新{{/if}}</h3>	
			{{ if $phase == 'completeupdate' }}
			<p class="message">更新が完了しました</p>
			<ul>
				<li>&gt;&gt; <a href="orderInfo.php?order_id={{$forms.order_id}}">参照画面に戻る</a></li>
			</ul>
			{{ else }}
			<p class="message">{{if $mod=='copy'}}必要な情報を入力して、「登録」ボタンをクリックしてください。{{else}}受注更新一覧{{/if}}</p>
			{{if $mod!='copy'}}
			<ul>
				<li>&gt;&gt; <a href="orderInfo.php?order_id={{$forms.order_id}}">一覧へ戻る</a></li>
			</ul>
			{{/if}}
			<form name="fm2" action="order.php" method="post">
				<input type="hidden" name="mod" value="{{if $mod=='copy'}}copy{{else}}update{{/if}}" />
				<input type="hidden" name="order_id" value="{{$forms.order_id}}" />
				<table class="formTable">
					<thead>
					<tr>
						<th>※種別</th>
						<td>
						<input type="radio" name="category" value="1" {{ if $forms.category == 1 }}checked="checked"{{ /if }} id="c1"  /> <label for="c1">プリント工房PRO</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="category" value="2" {{ if $forms.category == 2 }}checked="checked"{{ /if }} id="c2" /> <label for="c2">プリント工房LITE</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="category" value="3" {{ if $forms.category == 3 }}checked="checked"{{ /if }} id="c3" /> <label for="c3">名刺工房</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="category" value="4" {{ if $forms.category == 4 }}checked="checked"{{ /if }} id="c4" /> <label for="c4">アルバム工房</label>
						&nbsp;<span style="color: red">{{ $err.category }}</span>
						</td>
					</tr>
					<tr>
						<th>※企業形態</th>
						<td>
						<input type="radio" name="comtype" value="1" {{ if $forms.comtype == 1 }}checked="checked"{{ /if }} id="cm1" /> <label for="cm1">法人</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="comtype" value="2" {{ if $forms.comtype == 2 }}checked="checked"{{ /if }} id="cm2" /> <label for="cm2">個人</label>
						&nbsp;<span style="color: red">{{ $err.comtype }}</span>
						</td>
					</tr>
					
					<tr>
						<th>※氏名</th>
						<td><input type="text" name="name" class="text" value="{{ $forms.name }}" />&nbsp;<span style="color: red">{{ $err.name }}</span></td>
					</tr>
					<tr>
						<th>フリガナ</th>
						<td><input type="text" name="kana" class="text" value="{{ $forms.kana }}" />&nbsp;<span style="color: red">{{ $err.kana }}</span></td>
					</tr>
					<tr>
						<th>メールアドレス</th>
						<td><input type="text" name="email" class="text" value="{{ $forms.email }}" />&nbsp;<span style="color: red">{{ $err.email }}</span></td>
					</tr>
					<tr>
						<th>※電話番号</th>
						<td><input type="text" name="phone" class="text" value="{{ $forms.phone }}" />&nbsp;<span style="color: red">{{ $err.phone }}</span></td>
					</tr>
					<tr>
						<th>FAX番号</th>
						<td><input type="text" name="fax" class="text" value="{{ $forms.fax }}" />&nbsp;<span style="color: red">{{ $err.fax }}</span></td>
					</tr>
					<tr>
						<th>郵便番号</th>
						<td><input type="text" name="zip" class="text" value="{{ $forms.zip }}" />&nbsp;<span style="color: red">{{ $err.zip }}</span></td>
					</tr>
					<tr>
						<th>住所</th>
						<td><input type="text" name="address" class="text" value="{{ $forms.address }}" /></td>
					</tr>
					<tr>
						<th>使用目的</th>
						<td>
						<input type="checkbox" name="pofuse1" value="1" {{ if $forms.pofuse1 == 1 }}checked="checked"{{ /if }} id="pf1"  /> <label for="pf1">作品展</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="pofuse2" value="2" {{ if $forms.pofuse2 == 2 }}checked="checked"{{ /if }} id="pf2" /> <label for="pf2">コンテスト募集</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="pofuse3" value="3" {{ if $forms.pofuse3 == 3 }}checked="checked"{{ /if }} id="pf3" /> <label for="pf3">個人所有や贈与品</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="pofuse4" value="4" {{ if $forms.pofuse4 == 4 }}checked="checked"{{ /if }} id="pf4" /> <label for="pf4">その他</label>&nbsp;<input type="text" id="pofuse_info" class="text" name="pofuse_info" value="{{$forms.pofuse_info}}" style="width: 80px"  />
						</td>
					</tr>
					
					<tr>
						<th>納品日</th>
						<td><input type="text" id="delivery_date1" class="text" name="delivery_date" style="width: 80px" value="{{ $forms.delivery_date }}" />&nbsp;<span style="color: red">{{ $err.delivery_date }}</span></td>
					</tr>
					
					<tr>
						<th>納品先郵便番号</th>
						<td><input type="text" id="delivery_zip" class="text" name="delivery_zip" style="width: 80px" value="{{ $forms.delivery_zip }}" />&nbsp;<span style="color: red">{{ $err.delivery_zip }}</span></td>
					</tr>
					<tr>
						<th>納品先住所</th>
						<td><input type="text" id="delivery_address" class="text" name="delivery_address" value="{{ $forms.delivery_address }}" /></td>
					</tr>
					
					<tr>
						<th>納品先電話番号</th>
						<td><input type="text" id="delivery_phone" class="text" name="delivery_phone" value="{{ $forms.delivery_phone }}"  />&nbsp;<span style="color: red">{{ $err.delivery_phone }}</span></td>
					</tr>
					<tr>
						<th>連絡手段</th>
						<td>
						<input type="radio" name="delivery_contact" value="1" {{ if $forms.delivery_contact == 1 }}checked="checked"{{ /if }} id="dc1" /> <label for="dc1">電話</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="delivery_contact" value="2" {{ if $forms.delivery_contact == 2 }}checked="checked"{{ /if }} id="dc2" /> <label for="dc2">FAX</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="delivery_contact" value="3" {{ if $forms.delivery_contact == 3 }}checked="checked"{{ /if }} id="dc3" /> <label for="dc3">Eメール</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="delivery_contact" value="4" {{ if $forms.delivery_contact == 4 }}checked="checked"{{ /if }} id="dc4" /> <label for="dc4">その他</label> &nbsp;<input type="text" id="delivery_contact_info" class="text" name="delivery_contact_info" value="{{$forms.delivery_contact_info}}" style="width: 80px"  />
						</td>
					</tr>
					
					<tr>
						<th>ご希望納期</th>
						<td><input type="text" id="hope_date" class="text" name="hope_date" style="width: 80px" value="{{ $forms.hope_date }}" />&nbsp;<span style="color: red">{{ $err.hope_date }}</span></td>
					</tr>
					
					<tr>
						<th>プリント工房の利用</th>
						<td>
						<input type="radio" name="print_use" value="1" {{ if $forms.print_use == 1 }}checked="checked"{{ /if }} id="print_use1"  /> <label for="print_use1">初めて</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="print_use" value="2" {{ if $forms.print_use == 2 }}checked="checked"{{ /if }} id="print_use2" /> <label for="print_use2">利用したことがある</label>&nbsp;&nbsp;&nbsp;
						<input type="text" disabled="disabled" style="width: 80px" class="text" id="print_use3" name="print_use3" value="{{$forms.print_use3}}"  /> 年&nbsp;&nbsp;&nbsp;
						<input type="text" disabled="disabled" style="width: 80px" class="text" id="print_use4" name="print_use4" value="{{$forms.print_use4}}"  /> 月頃
						&nbsp;<span style="color: red">{{ $err.print_use3 }}</span>
						</td>
					</tr>
					
					<tr>
						<th>どこで知りましたか</th>
						<td>
						<input type="checkbox" name="wherefrom1" value="1" {{ if $forms.wherefrom1 == 1 }}checked="checked"{{ /if }} id="wherefrom1" /> <label for="wherefrom1">HP</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="wherefrom2" value="2" {{ if $forms.wherefrom2 == 2 }}checked="checked"{{ /if }} id="wherefrom2" /> <label for="wherefrom2">雑誌</label>&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="wherefrom3" value="3" {{ if $forms.wherefrom3 == 3 }}checked="checked"{{ /if }} id="wherefrom3" /> <label for="wherefrom3">友人紹介</label>&nbsp;&nbsp;<input type="text" id="wherefrom_info" value="{{$forms.wherefrom_info_1}}" class="text" name="wherefrom_info_1" style="width: 80px"  />
						<input type="checkbox" name="wherefrom4" value="4" {{ if $forms.wherefrom4 == 4 }}checked="checked"{{ /if }} id="wherefrom4" /> <label for="wherefrom4">その他</label> &nbsp;<input type="text" id="wherefrom_info" value="{{$forms.wherefrom_info_2}}"  class="text" name="wherefrom_info_2" style="width: 80px"  />
						</td>
					</tr>
					<tr>
						<th>※支払方法</th>
						<td>
						<input type="radio" name="pay_type" value="1" {{ if $forms.pay_type == 1 }}checked="checked"{{ /if }} id="pay_type1" /> <label for="pay_type1">事前振込み</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="pay_type" value="2" {{ if $forms.pay_type == 2 }}checked="checked"{{ /if }} id="pay_type2" /> <label for="pay_type2">代金引換</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="pay_type" value="3" {{ if $forms.pay_type == 3 }}checked="checked"{{ /if }} id="pay_type3" /> <label for="pay_type3">請求書払い</label>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="pay_type" value="4" {{ if $forms.pay_type == 4 }}checked="checked"{{ /if }} id="pay_type4" /> <label for="pay_type4">現金払い</label>
						&nbsp;<span style="color: red">{{ $err.pay_type }}</span>
						</td>
					</tr>
					
					<tr>
						<th>特記事項</th>
						<td>
						<textarea rows="3" cols="50" id="special"  name="special">{{$forms.special}}</textarea>
						</td>
					</tr>
					<tr>
						<th>コメント<br/>※納品書に反映</th>
						<td>
						<textarea rows="3" cols="50" id="remark"  name="remark">{{$forms.remark}}</textarea>
						&nbsp;<span style="color: red">{{ $err.remark }}</span>
						</td>
					</tr>
					
				</thead>
				</table>
				
				<table id="inquiry_result" class="formTable">
				<thead>
					
					<tr>
						<th>登録日</th>
						<td>{{ $forms.m_date }}<input type="hidden" name="m_date"  value="{{ $forms.m_date }}" /></td>
					</tr>
					
					<tr>
						<th>更新日</th>
						<td>{{ $forms.u_date }}<input type="hidden" name="u_date"  value="{{ $forms.u_date }}" /></td>
					</tr>
					
					<tr>
						<th>受注日</th>
						<td>{{ $forms.o_date }}<input type="hidden" name="o_date"  value="{{ $forms.o_date }}" /></td>
					</tr>
					
					<tr>
						<th>受注番号</th>
						<td>{{ $forms.order_id }}<input type="hidden" name="order_id"  value="{{ $forms.order_id }}" /></td>
					</tr>
					
					<tr>
						<th>受注ステータス</th>
						<td>
						<input type="radio" name="o_status" value="0" {{ if $forms.o_status == 0 && $forms.o_status!='' }}checked="checked"{{ /if }} id="o_status1" > <label for="o_status1">未確定</label></input>
						<input type="radio" name="o_status" value="1" {{ if $forms.o_status == 1 }}checked="checked"{{ /if }} id="o_status2"  > <label for="o_status2">確定</label></input>
						</td>
					</tr>
					<tr>
						<th>入金ステータス</th>
						<td>
						<input type="radio" name="m_status" value="1"  {{ if $forms.m_status == 1 }}checked="checked"{{ /if }} id="m_status1" > <label for="m_status1">有</label></input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="m_status" value="0" {{ if $forms.m_status == 0 && $forms.m_status!=''}}checked="checked"{{ /if }} id="m_status2" > <label for="m_status2">無</label></input>
						</td>
					</tr>
					
				</thead>			
			</table>
				
				
				<p class="button">
					<button type="submit" class="submit"><span>{{if $mod=='copy'}}レジストリを追加{{else}}更新{{/if}}</span></button>
				</p>
					
				
			</form>
			{{ /if }}
</div>
{{/if}}

		</div></div>
		<address>Copyright (C) SHIFT Inc. / All rights reserved</address>
	</body>

</html>